package com.isdepci.project.carbon.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.carbon.mapper.GreenCertificatesListPurchaserMapper;
import com.isdepci.project.carbon.domain.GreenCertificatesListPurchaser;
import com.isdepci.project.carbon.service.IGreenCertificatesListPurchaserService;

/**
 * 绿证-求购动态Service业务层处理
 *
 * @author isdepci
 * @date 2025-05-28
 */
@Service
public class GreenCertificatesListPurchaserServiceImpl implements IGreenCertificatesListPurchaserService
{
    @Autowired
    private GreenCertificatesListPurchaserMapper greenCertificatesListPurchaserMapper;

    /**
     * 查询绿证-求购动态
     */
    @Override
    public GreenCertificatesListPurchaser selectGreenCertificatesListPurchaserById(Long id)
    {
        return greenCertificatesListPurchaserMapper.selectGreenCertificatesListPurchaserById(id);
    }

    /**
     * 查询绿证-求购动态列表
     */
    @Override
    public List<GreenCertificatesListPurchaser> selectGreenCertificatesListPurchaserList(GreenCertificatesListPurchaser greenCertificatesListPurchaser)
    {
        return greenCertificatesListPurchaserMapper.selectGreenCertificatesListPurchaserList(greenCertificatesListPurchaser);
    }

    /**
     * 新增绿证-求购动态
     */
    @Override
    public int insertGreenCertificatesListPurchaser(GreenCertificatesListPurchaser greenCertificatesListPurchaser)
    {
        return greenCertificatesListPurchaserMapper.insertGreenCertificatesListPurchaser(greenCertificatesListPurchaser);
    }

    /**
     * 修改绿证-求购动态
     */
    @Override
    public int updateGreenCertificatesListPurchaser(GreenCertificatesListPurchaser greenCertificatesListPurchaser)
    {
        return greenCertificatesListPurchaserMapper.updateGreenCertificatesListPurchaser(greenCertificatesListPurchaser);
    }

    /**
     * 批量删除绿证-求购动态
     */
    @Override
    public int deleteGreenCertificatesListPurchaserByIds(Long[] ids)
    {
        return greenCertificatesListPurchaserMapper.deleteGreenCertificatesListPurchaserByIds(ids);
    }

    /**
     * 删除绿证-求购动态信息
     */
    @Override
    public int deleteGreenCertificatesListPurchaserById(Long id)
    {
        return greenCertificatesListPurchaserMapper.deleteGreenCertificatesListPurchaserById(id);
    }
}
